package com.ss.android.push.daemon;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;

public interface IPushService extends IInterface {
    void keepAlive() throws RemoteException;

    public abstract class Stub extends Binder implements IPushService {
        public Stub() {

            this.attachInterface(((IInterface) this), "com.ss.android.push.daemon.IPushService");
        }

        public static IPushService asInterface(IBinder arg2) {
            IPushService v0_2 = null;
            if (arg2 == null) {
                v0_2 = null;
            } else {
                v0_2 = (IPushService) arg2.queryLocalInterface("com.ss.android.push.daemon.IPushService");
                if (v0_2 != null && ((v0_2 instanceof IPushService))) {
                } else {
                    v0_2 = new Proxy(arg2);
                }
            }

            return v0_2;
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int arg3, Parcel arg4, Parcel arg5, int arg6) throws RemoteException {
            boolean v0 = true;
            switch (arg3) {
                case 1: {
                    arg4.enforceInterface("com.ss.android.push.daemon.IPushService");
                    this.keepAlive();
                    arg5.writeNoException();
                    break;
                }
                case 1598968902: {
                    arg5.writeString("com.ss.android.push.daemon.IPushService");
                    break;
                }
                default: {
                    v0 = super.onTransact(arg3, arg4, arg5, arg6);
                    break;
                }
            }

            return v0;
        }

        static class Proxy implements IPushService {
            private IBinder a;

            Proxy(IBinder arg1) {

                this.a = arg1;
            }

            public IBinder asBinder() {
                return this.a;
            }

            public String getInterfaceDescriptor() {
                return "com.ss.android.push.daemon.IPushService";
            }

            public void keepAlive() throws RemoteException {
                Parcel v1 = Parcel.obtain();
                Parcel v2 = Parcel.obtain();
                try {
                    v1.writeInterfaceToken("com.ss.android.push.daemon.IPushService");
                    this.a.transact(1, v1, v2, 0);
                    v2.readException();
                } catch (Throwable v0) {
                    v2.recycle();
                    v1.recycle();
                    throw v0;
                }

                v2.recycle();
                v1.recycle();
            }
        }
    }
}

